package com.lvfeng.system.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lvfeng.system.dao.UserDao;
import com.lvfeng.system.pojo.User;

/**
 * @author Administrator
 * UserService 用户服务
 */
@Service	//声明Service
public class UserService {
	@Autowired	//自动装载DAO
	private UserDao userDao;
	//查询用户列表
	public List<User> getAllUser(){
		return userDao.getAllUser();	//获取全部用户
	}
	//用户登录
	public String login(String unm,String pwd){
		return userDao.login(unm,pwd);
	}
	
}
